import java.util.Scanner;

public class homework07 {
    public static void main(String[] args) {
        /**
         * 输入一个不大于8位的数字判断这个数是不是回文数字。提示：所谓"回文",就是正着读和反着读是一样的
         */
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个不大于8位的数字：");
        int number = sc.nextInt();
        int temp = number;
        int number2 = number % 10;

        while (number > 10) {
            number = number / 10;
            number2 = number % 10 + number2 * 10;
        }
//        System.out.println(number2);
        if (temp == number2) {
            System.out.println("你输入的数是回数");
        } else {
            System.out.println("你输入的数不是回数");
        }
    }
}